<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Gloze: xml:lang</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Gloze
   &#160;<span id="projectnumber">1.01-beta2</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">xml:lang </div>  </div>
</div>
<div class="contents">
<div class="textblock"><p>The appearance of an xml:lang attribute states that the element content is expressed in the given language. The same lang value can be set on an RDF literal but not an RDF datatype. Language settings take precedence over datatyping.</p>
<div class="fragment"><pre class="fragment">&lt;?xml version=<span class="stringliteral">&quot;1.0&quot;</span> encoding=<span class="stringliteral">&quot;UTF-8&quot;</span>?&gt;
&lt;lang xmlns=<span class="stringliteral">&quot;http://example.org/&quot;</span> xml:lang=<span class="stringliteral">&quot;en&quot;</span>&gt;language&lt;/lang&gt;
</pre></div><p>This conforms to the following schema. Note that xml:lang is defined in a standard schema obtainable from <a href="http://www.w3.org/XML/1998/namespace.">http://www.w3.org/XML/1998/namespace.</a> The attribute group 'specialAttrs' includes xml:base, xml:lang and xml:space.</p>
<div class="fragment"><pre class="fragment">&lt;?xml version=<span class="stringliteral">&quot;1.0&quot;</span> encoding=<span class="stringliteral">&quot;UTF-8&quot;</span>?&gt;
&lt;xs:schema targetNamespace=<span class="stringliteral">&quot;http://example.org/&quot;</span> xmlns=<span class="stringliteral">&quot;http://example.org/&quot;</span> xmlns:xs=<span class="stringliteral">&quot;http://www.w3.org/2001/XMLSchema&quot;</span>&gt;
        &lt;xs:<span class="keyword">import</span> <span class="keyword">namespace</span>=<span class="stringliteral">&quot;http://www.w3.org/XML/1998/namespace&quot;</span> schemaLocation=<span class="stringliteral">&quot;xml.xsd&quot;</span> /&gt;
        &lt;xs:element name=<span class="stringliteral">&quot;lang&quot;</span>&gt;
                &lt;xs:complexType&gt;
                        &lt;xs:simpleContent&gt;
                                &lt;xs:extension base=<span class="stringliteral">&quot;xs:string&quot;</span>&gt;
                                        &lt;xs:attributeGroup ref=<span class="stringliteral">&quot;xml:specialAttrs&quot;</span>/&gt;
                                &lt;/xs:extension&gt;
                        &lt;/xs:simpleContent&gt;
                &lt;/xs:complexType&gt;
        &lt;/xs:element&gt;
&lt;/xs:schema&gt;
</pre></div><p>The resulting RDF below includes the literal 'language' in the english language.</p>
<div class="fragment"><pre class="fragment">@prefix ns2:     &lt;http:<span class="comment">//example.org/def/&gt; .</span>
@prefix ns1:     &lt;http:<span class="comment">//example.org/&gt; .</span>
@prefix xs_:     &lt;http:<span class="comment">//www.w3.org/2001/XMLSchema#&gt; .</span>
@prefix rdf:     &lt;http:<span class="comment">//www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .</span>
@prefix xs:      &lt;http:<span class="comment">//www.w3.org/2001/XMLSchema&gt; .</span>

&lt;http:<span class="comment">//example.org/attributeLang.xml&gt;</span>
      ns1:lang
              [ rdf:value <span class="stringliteral">&quot;language&quot;</span>@en
              ] .
</pre></div> </div></div>


<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 15 2011 22:13:50 for Gloze by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
